/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2025-02-19 15:49:09
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2025-02-19 15:57:08
 * @FilePath: /vue3-admin-server/src/common/utils/json.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export const generateObjFromError = (error: Error) => {
    return {
        ...error,
        stack: error.stack,
        message: error.message
    };
};
